<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>

    <div id="app"></div>

    <script src="./vue.min.js"></script>
    <script>
        var ces2 = {
            props: {
                text: {
                    type: String
                },
            },
            template: `
                <div>
                    <h1>{{text}}</h1>  
                </div>
            `
        }

        var vm = new Vue({
            components: {
                ces2,
            },
            template: `
                <div>
                    <ces2 text="测试1" />    
                    <ces2 text="测试2" />    
                    <ces2 text="测试3" />    
                </div>
            `
        })
        vm.$mount("#app")

    </script>
</body>

</html>